#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main() {
	/*char a = -128;
	char b = 0;
	char c = a + b;
	printf("%d", a);*/

	//int num = 10;
	//int c = num << 1;
	//int c = num >> 1;
	//printf("%d", c);
	//printf("%d", c);

	/*int a = -3;
	int b = 5;
	printf("%d\n", a & b);
	printf("%d\n", a | b);
	printf("%d\n", a ^ b);*/
	int n=0;
	scanf("%d", n);

	while (n )
	{
		n = n % 2;
		printf("%d", n);
		n = n / 2;
	}



}